package com.logwire.utils;import java.time.Instant;import java.time.LocalDate;import java.time.LocalTime;import java.time.ZoneId;import java.util.Date;public class LocalDateUtil {	public static LocalDate dateTolocalDate(Date date) {		Instant instant = date.toInstant();		ZoneId zoneId = ZoneId.systemDefault();		LocalDate localStartDate = instant.atZone(zoneId).toLocalDate();		return localStartDate;	}	public static Date localDateTodate(LocalDate localDate) {		Instant instant = localDate.atTime(LocalTime.MIDNIGHT).atZone(ZoneId.systemDefault()).toInstant();		Date date = Date.from(instant);		return date;	}}